package Model;

import java.util.Calendar;
import java.util.Date;


public class Linea {
	private String nroLinea;
	private Date fechaAlta;
	private Plan plan;
	
	public Linea(String nroLinea){
		this.nroLinea=nroLinea;
		this.fechaAlta = Calendar.getInstance().getTime();
	}
	
	public String getNroLinea() {
		return nroLinea;
	}
	public void setNroLinea(String nroLinea) {
		this.nroLinea = nroLinea;
	}
	public Date getFechaAlta() {
		return fechaAlta;
	}
	public void setFechaAlta(Date fechaAlta) {
		this.fechaAlta = fechaAlta;
	}
	public Plan getPlan() {
		return plan;
	}
	public void setPlan(Plan plan) {
		this.plan = plan;
	}
	
	public LineaView getView (){
		LineaView lineaView = new LineaView(this.nroLinea,this.fechaAlta,this.plan.getView());
		return lineaView;
	}
	
	public boolean isAdicional(){
		return false;
	}
}
